<div class="pages index">
	<h2><?php echo __('Pages'); ?></h2>
        <table cellpadding="0" cellspacing="0" class="table table-hover">
	<thead>
<!--	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('title'); ?></th>
			<th><?php echo $this->Paginator->sort('content'); ?></th>
			<th><?php echo $this->Paginator->sort('link'); ?></th>
			
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>-->
	</thead>
	<tbody>
	<?php foreach ($pages as $menu): ?>
	<tr>
		<td><?php echo h($menu['Page']['id']); ?>&nbsp;</td>
		<td><?php echo h($menu['Page']['title']); ?>&nbsp;</td>
		<td><?php echo h($menu['Page']['content']); ?>&nbsp;</td>
		<td><?php echo h($menu['Page']['link']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($menu['Page']['name'], array('controller' => 'mlocations', 'action' => 'view', $menu['Page']['id'])); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $menu['Page']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $menu['Page']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $menu['Page']['id']), array(), __('Are you sure you want to delete # %s?', $menu['Page']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</tbody>
	</table>
	
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Page'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Pages'), array('controller' => 'mlocations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Page'), array('controller' => 'mlocations', 'action' => 'add')); ?> </li>
	</ul>
</div>
